<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>LoremIpsum (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>

  <script type="text/javascript" src="//www.google.com/jsapi"></script>
  <script type="text/javascript">
     google.load("visualization", "1", {packages:["orgchart"]});
     var _loadingVisualizations = true;
  </script>

  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
        <span class="fn">text.LoremIpsum</span>
        <span>Extends</span>
        <span class="fn-name">
          
        </span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    Generates random strings of "lorem ipsum" text, based on the word
distribution of a sample text, using the words in a dictionary.

  </div>


        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/local/third_party/closure/goog/loremipsum/text/loremipsum.js">Git</a></li>
          </ol>
        </div>
</div>






<h2 class="g-first">Inheritance</h2>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
  <tr><td>goog.text.LoremIpsum</td><td></td></tr>
</table>
</div>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
</table>
</div>




  <h2>Constructor</h2>
      <div class="fn-constructor">
    goog.text.LoremIpsum(<span></span>)
  </div>



<h2>Instance Methods</h2>


  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_text_LoremIpsum.html">
              goog.text.LoremIpsum
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.prototype.chooseRandomStart_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">chooseRandomStart_<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;
      </div>


     <div class="entryOverview">
       Picks a random starting chain.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;&nbsp;
            The starting key.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line243">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.prototype.generateChains_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">generateChains_<span class="args">(<span class="arg">sample</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Generates the chains and starts values required for sentence generation.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">sample</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The same text.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line126">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.prototype.generateParagraph"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">generateParagraph<span class="args">(<span class="arg">opt_startWithLorem</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Generates a single lorem ipsum paragraph, of random length.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_startWithLorem</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
        <div class="entryOverview">Whether to start the sentence with the
    standard "Lorem ipsum..." first sentence.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The generated sentence.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line345">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.prototype.generateParagraphStatistics_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">generateParagraphStatistics_<span class="args">(<span class="arg">sample</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Calculates the mean and standard deviation of the lengths of paragraphs
(in sentences) in a sample text.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">sample</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The same text.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line201">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.prototype.generateSentence"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">generateSentence<span class="args">(<span class="arg">opt_startWithLorem</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Generates a single sentence, of random length.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_startWithLorem</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
        <div class="entryOverview">Whether to start the setnence with the
    standard "Lorem ipsum..." first sentence.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The generated sentence.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line255">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.prototype.generateSentenceStatistics_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">generateSentenceStatistics_<span class="args">(<span class="arg">sample</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Calculates the mean and standard deviation of the lengths of sentences
(in words) in a sample text.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">sample</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The same text.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line181">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.prototype.generateStatistics_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">generateStatistics_<span class="args">(<span class="arg">sample</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Calculates the mean and standard deviation of sentence and paragraph lengths.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">sample</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The same text.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line169">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.prototype.initializeDictionary_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">initializeDictionary_<span class="args">(<span class="arg">dictionary</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Sets the generator to use a given selection of words for generating
sentences with.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">dictionary</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The dictionary to use.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line221">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>




<h2>Instance Properties</h2>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_text_LoremIpsum.html">
              goog.text.LoremIpsum
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.prototype.chains_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">chains_</span>
        : <span class="type"><a href="class_goog_structs_Map.html">goog.structs.Map</a></span>
     </div>


     <div class="entryOverview">
       Chains of three words that appear in the sample text
Maps a pair of word-lengths to a third word-length and an optional
piece of trailing punctuation (for example, a period, comma, etc.).

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line79">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.prototype.dictionary_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">dictionary_</span>
        : 
     </div>


     <div class="entryOverview">
       Dictionary of words.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line712">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.prototype.paragraphMean_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">paragraphMean_</span>
        : 
     </div>


     <div class="entryOverview">
       Averange paragraph length in sentences.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line110">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.prototype.paragraphSigma_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">paragraphSigma_</span>
        : 
     </div>


     <div class="entryOverview">
       Sigma (sqrt of variance) for the paragraph length in sentences.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line118">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.prototype.sample_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">sample_</span>
        : 
     </div>


     <div class="entryOverview">
       Sample that the generated text is based on .

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line705">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.prototype.sentenceMean_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">sentenceMean_</span>
        : 
     </div>


     <div class="entryOverview">
       Averange sentence length in words.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line94">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.prototype.sentenceSigma_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">sentenceSigma_</span>
        : 
     </div>


     <div class="entryOverview">
       Sigma (sqrt of variance) for the sentence length in words.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line102">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.prototype.starts_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">starts_</span>
        : 
     </div>


     <div class="entryOverview">
       Pairs of word-lengths that can appear at the beginning of sentences.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line86">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.prototype.words_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">words_</span>
        : <span class="type"><a href="class_goog_structs_Map.html">goog.structs.Map</a></span>
     </div>


     <div class="entryOverview">
       Words that can be used in the generated output.
Maps a word-length to a list of words of that length.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line69">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>




<h2>Static Methods</h2>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.arrayLength_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">arrayLength_<span class="args">(<span class="arg">array</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Returns the length of an array. Written as a function so it can be used
as a function parameter.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">array</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>
        <div class="entryOverview">The array to check.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            The length of the array.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line421">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.chooseClosest"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">chooseClosest<span class="args">(<span class="arg">values</span>,&nbsp;<span class="arg">target</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Find the number in the list of values that is closest to the target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">values</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">The values.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">target</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The target value.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            The closest value.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line432">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.getWordInfo_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">getWordInfo_<span class="args">(<span class="arg">word</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>
      </div>


     <div class="entryOverview">
       Gets info about a word used as part of the lorem ipsum algorithm.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">word</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The word to check.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>&nbsp;
            A two element array. The first element is the size of the
   word. The second element is the delimter used in the word.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line450">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.isNotEmptyOrWhitepace_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">isNotEmptyOrWhitepace_<span class="args">(<span class="arg">text</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Returns the text is not empty or just whitespace.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The text to check.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            Whether the text is nether empty nor whitespace.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line410">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.randomChoice_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">randomChoice_<span class="args">(<span class="arg">array</span>)</span>
        </span>
        &#8658; <span class="type">*</span>
      </div>


     <div class="entryOverview">
       Picks a random element of the array.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">array</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>
        <div class="entryOverview">The array to pick from.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type">*</span>&nbsp;
            An element from the array.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line499">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.randomNormal_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">randomNormal_<span class="args">(<span class="arg">mu</span>,&nbsp;<span class="arg">sigma</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Generates a random number for a normal distribution with the specified
mean and sigma.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">mu</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The mean of the distribution.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">sigma</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The sigma of the distribution.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line480">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.splitParagraphs_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">splitParagraphs_<span class="args">(<span class="arg">text</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;
      </div>


     <div class="entryOverview">
       Splits a piece of text into paragraphs.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The text to split.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;&nbsp;
            An array of paragraphs.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line373">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.splitSentences_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">splitSentences_<span class="args">(<span class="arg">text</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;
      </div>


     <div class="entryOverview">
       Splits a piece of text into sentences.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The text to split.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;&nbsp;
            An array of sentences.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line384">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.text.LoremIpsum.splitWords_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">splitWords_<span class="args">(<span class="arg">text</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;
      </div>


     <div class="entryOverview">
       Splits a piece of text into words..

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The text to split.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;&nbsp;
            An array of words.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line397">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>



<h2>Static Properties</h2>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.DELIMITERS_SENTENCES_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">DELIMITERS_SENTENCES_</span>
        : 
     </div>


     <div class="entryOverview">
       Delimiters that end sentences.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line36">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.DELIMITERS_WORDS_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">DELIMITERS_WORDS_</span>
        : 
     </div>


     <div class="entryOverview">
       Delimiters that end words.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line52">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.DICT_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">DICT_</span>
        : 
     </div>


     <div class="entryOverview">
       Dictionary of words for lorem ipsum.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line509">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.NV_MAGICCONST_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">NV_MAGICCONST_</span>
        : 
     </div>


     <div class="entryOverview">
       Constant used for <code> #randomNormal_</code>.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line470">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.SAMPLE_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">SAMPLE_</span>
        : 
     </div>


     <div class="entryOverview">
       A sample to use for generating the distribution of word and sentence lengths
in lorem ipsum.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line540">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.SENTENCE_SPLIT_REGEX_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">SENTENCE_SPLIT_REGEX_</span>
        : 
     </div>


     <div class="entryOverview">
       Regular expression for spliting a text into sentences.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line44">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.text.LoremIpsum.WORD_SPLIT_REGEX_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.text.LoremIpsum.</span><span class="entryName">WORD_SPLIT_REGEX_</span>
        : 
     </div>


     <div class="entryOverview">
       Regular expression for spliting text into words.

     </div>

  </td>


  <td class="view-code">
     <a href="local_third_party_closure_goog_loremipsum_text_loremipsum.js.source.html#line60">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package text</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="" current="text.LoremIpsum"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
